x=input().strip().split(' ')
x=[float(i) for i in x]
y=input().strip().split(' ')
y=[float(i) for i in y]

def d0(a,b,c,h):

    return 0.5/h*(-3*a+4*b-c)

def d1(a,b,c,h):

    return 0.5/h*(-a+c)

def d2(a,b,c,h):
    return 0.5/h*(a-4*b+3*c)

n=len(x)

ans_list=[]
ans_list.append(d0(y[0],y[1],y[2],x[1]-x[0]))
for i in range(1,n-1):
    ans_list.append(d1(y[i-1],y[i],y[i+1],x[i+1]-x[i]))
ans_list.append(d2(y[n-3],y[n-2],y[n-1],x[n-1]-x[n-2]))

for i in range(len(ans_list)-1):    print("%.3f" %ans_list[i],end=" ")
print("%.3f" %ans_list[-1])